//
//  DownloadManagerInternal.m
//  etionCBLogic
//
//  Created by wjxfhxy on 14-3-6.
//  Copyright (c) 2014年 GuangZhouXuanWu. All rights reserved.
//

#import "XLGDownloadManagerInternal.h"

@implementation XLGDownloadIndex (XLGDownloadIndexinternal)

- (id)initWithDownloadIndex:(XLGDownloadIndex*)downloadIndex
{
    self = [super init];
    
    self.title = downloadIndex.title;
    self.extendID = downloadIndex.extendID;
    self.URL = downloadIndex.URL;
    self.downloadStatus = downloadIndex.downloadStatus;
    self.sourceType = downloadIndex.sourceType;
    self.totalByte = downloadIndex.totalByte;
    self.downloadByte = downloadIndex.downloadByte;
    self.submitTime = downloadIndex.submitTime;
    self.downloadTime = downloadIndex.downloadTime;
    
    return self;
}

+ (XLGDownloadIndex*)downloadIndexWithWithDownloadIndex:(XLGDownloadIndex*)downloadIndex
{
    return [[[XLGDownloadIndex alloc] initWithDownloadIndex:downloadIndex] autorelease_mm];
}

@end
